import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import { Route, Link } from 'react-router-dom';
import Home from "./views/home";
import About from "./views/about";

class App extends Component {
  render() {
    return (
      <div className="App">
        <header className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <h1 className="App-title">Welcome to React</h1>
        </header>
        <Link to="/Home">Home</Link>
        <Link to="/About">About</Link>
        <Route path="/Home" component={Home}/>
        <Route path="/About" component={About}/>
      </div>
    );
  }
}

export default App;
